import 'package:dala_flutter/dala/http/dio_instance.dart';
import 'package:dala_flutter/dala/model/circle_data.dart';
import 'package:dio/dio.dart';

class Api {
  static Api instance = Api._();
  Api._();

  // 获取侧边栏接口数据
  Future<List<CircleData>?> getCircleListData() async {
    Response response = await DioInstance.instance().get(path: '/category/find/list');
    CircleListData circleListData = CircleListData.fromJson(response.data);
    return circleListData.circleList;
  }

  // 获取帖子接口数据

}